<!-- 加载layout.html -->
{{extend('./layout.html')}}
			
{{#block('main')}}			
	<div class="main-container">
		<div class="padding-md">
			<ul class="breadcrumb">
				<li><span class="primary-font"><i class="icon-home"></i></span><a href="index.html"> 主页</a></li>
				<li>学生管理</li>	 
				<li>学生列表</li>
				<li class="pull-right"><a href="/admin/student/student_add" class="btn btn-primary">添加学生</a></li>
			</ul>

			<table class="table table-striped" id="dataTable">
				<thead>
					<tr>
						<th>序号</th>
						<th>所属班级</th>
						<th>学生头像</th>
						<th>学生姓名</th>
						<th>学生年龄</th>
						<th>学生性别</th>
						<th>手机号码</th>
						<th>报名时间</th>
						<th>学生状态</th>
						<th>操作</th>
						<th  class="text-center"><a href="javascript:;" class="btn btn-primary" id='delAll'>全选</a>&nbsp;&nbsp;
							<a href="javascript:;" class="btn btn-danger widget-remove-option" id='0' ctrname="student">删除</a></th>
					</tr>
				</thead>
				<tbody>
					{{#each(stuSer)}}
					<tr>
						<td>{{start+xindex+1}}</td>
						<td>{{this.class_name}}</td>
						<td>
							<img src="/uploads/{{this.stu_img}}" alt="" style="width: 80px;">
							<div class="gallery-overlay">
								<a href="/uploads/{{this.stu_img}}" class="gallery-action enlarged-photo"><i class="fa fa-search-plus fa-lg"></i></a>
							</div>
						</td>
						<td>{{this.stu_name}}</td>
						<td>{{this.stu_age}}</td>
						<td>{{this.stu_sex===1?'男':'女'}}</td>
						<td>{{this.stu_phone}}</td>
						<!-- 这里是通过js对时间戳进行转换，js写在layout.html文件下面 -->
						<td class="stu_time" data-time="{{this.stu_time}}"></td>
						<td><span class="label label-success">In Stock</span></td>
						<td>
							<a href="/admin/student/student_edit/{{this.stu_id}}" class="btn btn-success">修改</a>
							<a href="javascript:;" class="btn btn-danger widget-remove-option" id="{{this.stu_id}}" ctrname="student">删除</a>
						</td>

						<td class="text-center">
							<div class="checkbox">
								<div class="custom-checkbox">
									<input type="checkbox" id="checkbox{{xindex+1}}" sid="{{this.stu_id}}">
									<label for="checkbox{{xindex+1}}"></label>
								</div>
								<div class="inline-block vertical-top">
									
								</div>
							</div>
						</td>

					</tr>
					{{/each}}
				</tbody>
			</table>

			<!-- 包含分页文件 -->
			<!-- {{include('./page.html')}} -->
		
		</div><!-- ./padding-md -->
		
	</div><!-- /main-container -->
{{/block}}
